Skip to content

test: Re-add basic test for tui module#81

Merged
Valentin-v-Todorov merged 2 commits intoTheDevOpsBlueprint:mainfrom
amcintosh:feature/add-tests-tui-module
Oct 10, 2025
Merged

test: Re-add basic test for tui module#81
Valentin-v-Todorov merged 2 commits intoTheDevOpsBlueprint:mainfrom
amcintosh:feature/add-tests-tui-module

Conversation

@amcintosh
Copy link
Contributor

@amcintosh amcintosh commented Oct 10, 2025

PR Checklist

  • Follows single-purpose principle
  • Tests pass locally (if applicable)
  • Documentation updated (if needed)

What does this PR do?

Readding tests for the TUI module. Previous work was merged after the record_history changes, causing
failures in main. This should resolve.

As with the original work, rhis adds some basic tests to get coverage on some of the common rendering code. Full test coverage will take a bit more effort.

Related Issue

Fixes #29 and PR 75

Type of change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Configuration change
  • Documentation update
  • Setup/Infrastructure

Testing

Readding tests for the TUI module. Previous work was
merged after the record_history changes, causing
failures in main. This should resolve.

As with the original work, rhis adds some basic tests to get
coverage on some of the common rendering code. Full test coverage will take a bit more effort.
@amcintosh amcintosh force-pushed the feature/add-tests-tui-module branch 4 times, most recently from 7b5b452 to a08657a Compare October 10, 2025 20:39
These are on older Python versions (3.8, 3.9) that had lesser typing
support.

Failed tests:

```
alix/render.py:12: in Render
    def _split_keep_ws(self, s: str) -> list[str | Any]:
E   TypeError: unsupported operand type(s) for |: 'type' and '_SpecialForm'
```

```
alix/shell_integrator.py:61: in ShellIntegrator
    def preview_aliases(self, target_file: Optional[Path] = None) -> tuple[str, str]:
E   TypeError: 'type' object is not subscriptable
```
@amcintosh amcintosh force-pushed the feature/add-tests-tui-module branch from a08657a to 0ba7eae Compare October 10, 2025 21:31
@amcintosh amcintosh mentioned this pull request Oct 10, 2025
@Valentin-v-Todorov
Copy link
Contributor

@amcintosh LGTM ! GGs

@Valentin-v-Todorov Valentin-v-Todorov merged commit 6f50f96 into TheDevOpsBlueprint:main Oct 10, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add comprehensive test suite

2 participants